function initPieChart(api_url, title, cid, chart_id) {
    var config = {
        chart: {
            plotBackgroundColor: null,
            plotBorderWidth: null,
            plotShadow: false,
            type: 'pie'
        },
        credits: {
            enabled: false // 关闭版权信息
        },
        title: {
            text: null
        },
        tooltip: {
            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
        },
        plotOptions: {
            pie: {
                allowPointSelect: true,
                cursor: 'pointer',
                dataLabels: {
                    enabled: true,
                    format: '<b>{point.name}</b>: {point.percentage:.1f} %',
                    style: {
                        color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
                    },
                    connectorColor: 'silver'
                }
            }
        },
        series: [{
            name: title,
            colorByPoint: true,
            data: {
                name: 'media-kunming.railway.cn', y: 5,
            }
        },]
    };
    $.ajax({
        url: api_url,
        type: "GET",
        data: {id: cid},
        dataType: "JSON",
        success: function (res) {
            config.series[0].data = res.data
            Highcharts.setOptions({
                global: {
                    useUTC: false
                }
            });
            var chart = Highcharts.chart(chart_id, config);
        }
    })
}